"""
Author: wenbin
Create: 2024/8/27
"""
from injector import Injector, Module, Binder

from app.models.base_model import SQLAlchemy, db


class DatabaseModule(Module):

    def configure(self, binder: Binder) -> None:
        binder.bind(SQLAlchemy, to=db)


injector = Injector([DatabaseModule])
